package com.stu.mapper;

import com.stu.Dto.StuPasswordDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface StuPasswordMapper {

    @Select("select id from stu_basic_information where stu_id = #{stuId} and password = #{oldPassword}")
    Integer StuPasswordSelect(StuPasswordDto stuPasswordDto);

    @Update("update stu_basic_information set password = #{newPassword} where stu_id = #{stuId}")
    void StuPasswordAlter(StuPasswordDto stuPasswordDto);
}
